package com.example.gateway.constant;

import com.example.starter.constant.ResultStatus;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * @author 王令
 * @since 2022/9/23 13:38
 */
@Getter
@RequiredArgsConstructor
public enum GatewayExceptionEnum implements ResultStatus {
    TOO_MANY_REQUESTS(42900, "请不要频繁发送请求"),
    INVALID_TENANT(40110, "不是合法租户"),
    DEMO_ENV_FORBIDDEN(40310, "演示环境禁止该操作"),
    SYSTEM_ERROR(50000, "服务器异常"),
    SERVICE_UNAVAILABLE(50300, "服务不可用"),
    ;

    private final Integer code;
    private final String message;
}
